<h2 class="title">合同设备明细</h2>
<table class="tb_list" width="100%">
<tr class="title">
	<td class="list_td_zw_10">中文名称</td>
	<td class="list_td_zw_10">英文名称</td>
	<td>规格型号</td>
	<td class="list_td_zw_04">合同数量</td>
	<td class="list_td_zw_02">单位</td>
	<!--<td>单价</td>
	<td>总价</td>-->
	<td class="list_td_zw_04">到货数量</td>
	<!--<td class="td_width6">出厂日期</td>
	<td>所属项目</td>
	<td>到货地点</td>-->
	<td class="list_td_zw_04">到货状态</td>
	<!--<td>到货期间</td>
	<td>设备备注</td>-->
	<td class="list_td_zw_opt02">操作</td>
</tr>
{%foreach item=list_two from=$v_mc_info_log%}
<tr>
	<td class="alignleft">{%cut_str str=$list_two.mc_cn_name sublen=10%}</td>
	<td class="alignleft">{%cut_str str=$list_two.mc_en_name sublen=20%}</td>
	<td class="alignleft">{%$list_two.mc_model%}</td>
	<td>{%$list_two.mc_no%}</td>
	<td>{%$list_two.unit%}</td>
	<!--<td>{%$list_two.price%}</td>
	<td>
	{%if $list_two.price > 0 && $list_two.mc_no > 0%}
		{% $list_two.price*$list_two.mc_no%}
	{%else%}
		暂无
	{%/if%}
	</td>-->
	<td>{%if $list_two.mc_log_num %}{%$list_two.mc_log_num %}{%else%}0{%/if%}</td>
	<!--<td>{%$list_two.arrival_time|date_format:"%Y-%m-%d"%}</td>
	<td>{%$project_arr[$list.project_id]%}</td>
	<td>
	{%if $list_two.arrival_area%}
		{%$list_two.arrival_area%}
	{%else%}
		暂无
	{%/if%}
	</td>-->
	<td>
	{%if $list_two.arrival_state==2%}
	部分到货
	{%elseif $list_two.arrival_state==1%}
		已到货
	{%else%}
		未到货
	{%/if%}
	</td>
	<!--	<td>{%$arr_item.finish_time|date_format:"%Y-%m-%d"%}</td>-->
	<!--<td>{%$list.mc_info%}</td>-->
	<td>
		{%if $list_two.arrival_state<>1%}
		<a href='index.php?c=zy_arrival_log&m=add&mc_log_id={%$list_two.mc_log_id%}&contract_no={%$smarty.get.contract_no%}&sell_reply_id={%$smarty.get.sell_reply_id%}'>到货</a>&nbsp;
		{%/if%}
		<a href='index.php?c=zy_mc_log&m=edit&mc_log_id={%$list_two.mc_log_id%}&contract_no={%$smarty.get.contract_no%}{%if $list_two.mc_log_num%}&is_edit=1{%/if%}'>修改</a>
	</td>
</tr>
{%foreachelse%}
<tr><td colspan="8">暂无内容</td></tr>
{%/foreach%}
</table>
<!--
<p class="btn_right">
	<button type="button" class="b-default" hidefocus="true" onclick="window.location.href='index.php?c=zy_sell&m=browse&contract_no={%$smarty.get.contract_no%}'"><span><em>返回</em></span></button>
</p>
-->
<h2 class="title">合同到货记录</h2>
<table class="tb_list" width="100%">
<tr class="title">
	<td class="list_td_zw_10">中文名称</td>

	<td>规格型号</td>
	<td class="list_td_zw_04">合同数量</td>
	<td class="list_td_zw_02">单位</td>
	<!--<td width="5%">单价</td>
	<td width="5%">总价</td>-->
	<td class="list_td_zw_04">到货数量</td>
	<!--<td class="list_date">出厂日期</td>-->
	<td class="list_date">到货时间</td>
	<td class="list_td_zw_10">所属项目</td>
	<!--<td class="td_width5">到货状态</td>
	<td>到货期间</td>-->
	<td class="list_td_zw_10">到货地点</td>
	<!--<td>设备备注</td>-->
</tr>
{%foreach item=list from=$arrival_arr%}
<tr>
	<td class="alignleft" title="{%$list.mc_cn_name%}">{%cut_str str=$list.mc_cn_name sublen=10%}</td>

	<td class="alignleft">{%$list.mc_model%}</td>
	<td>{%$list.mc_no%}</td>
	<td>{%$list.unit%}</td>
	<!--<td>{%$list.price%}</td>
	<td>
	{%if $list.price > 0 && $list.mc_no > 0%}
		{% $list.price*$list.mc_no%}
	{%else%}
		暂无
	{%/if%}
	</td>-->
	<td>{% $list.arrival_no %}</td>
	<!--<td>{%if $list.make_time%}{%$list.make_time|date_format:"%Y-%m-%d"%}{%/if%}</td>-->
	<td>{%$list.arrival_time|date_format:"%Y-%m-%d"%}</td>
	<td class="alignleft">{%get_pj id=$list.sell_reply_id%}</td>
	<!--	<td>
	{%if $list_two.arrival_state%}
		已到货
	{%else%}
		未到货
	{%/if%}
	</td>
	<td>{%$arr_item.finish_time|date_format:"%Y-%m-%d"%}</td>-->
	<td>
	{%$list.arrival_area%}
	</td>
<!--	<td>{%$list.mc_info%}</td>-->
</tr>
{%foreachelse%}
<tr><td colspan="8">暂无内容</td></tr>
{%/foreach%}
</table>

<p class="btn_right">
	<button type="button" class="b-default" hidefocus="true" onclick="window.location.href='index.php?c=zy_mc_log&m=imports&contract_no={%$smarty.get.contract_no%}&sell_reply_id={%$smarty.get.sell_reply_id%}'"><span><em>导入</em></span></button>
	<button type="button" class="b-default" hidefocus="true" onclick="window.location.href='index.php?c=zy_sell&m=browse&contract_no={%$smarty.get.contract_no%}'"><span><em>返回</em></span></button>
</p>